package cn.tedu._02notice.mapper;

import cn.tedu._02notice.pojo.dto.NoticeListQuery;
import cn.tedu._02notice.pojo.entity.Notice;
import cn.tedu._02notice.pojo.vo.NoticeDetailInfoVo;
import cn.tedu._02notice.pojo.vo.NoticeListVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NoticeMapper {
    int insertNotice(Notice notice);

    List<NoticeListVo> listNotice(NoticeListQuery noticeListQuery);

    NoticeDetailInfoVo selectNotice(Long noticeId);

    int deleteById(Long noticeId);

    int updateById(Notice notice);
}
